package com.example.websocket.pattern.creational.builder;

import com.example.websocket.pattern.creational.builder.item.ChickenBurger;
import com.example.websocket.pattern.creational.builder.item.Coke;
import com.example.websocket.pattern.creational.builder.item.Pepsi;
import com.example.websocket.pattern.creational.builder.item.VegBurger;

public class MealBuilder {

    public Meal prepareVegMeal(){
        Meal vegMeal = new Meal();
        vegMeal.addItem(new VegBurger());
        vegMeal.addItem(new Pepsi());
        return vegMeal;
    }

    public Meal prepareNonVegMeal(){
        Meal nonVegMeal = new Meal();
        nonVegMeal.addItem(new ChickenBurger());
        nonVegMeal.addItem(new Coke());
        return nonVegMeal;
    }
}
